package com.prs.crm.domain.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 
 * 普通编码设置
 * 
 * @author 王婷
 * 
 */

@Entity
@Table(name = "cd_codeCommon")
public class CodeCommon extends BaseEntity {

	private static final long serialVersionUID = 1556583254686899200L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 方案名称
	 */
	private String codePlan;

	/**
	 * 编码前缀
	 */
	private String prefix;

	/**
	 * 是否默认
	 */
	private String default1;

	/**
	 * 流水号位数
	 */
	private String codeNumber;

	/**
	 * 起始流水号
	 */

	private String serialcode;

	/**
	 * 流水号
	 */
	private String NumBackUp;

	/**
	 * 编码类型
	 */

	private String codeType;
	/**
	 * 是否用完
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private int codeState;

	public int getCodeState() {
		return codeState;
	}

	public void setCodeState(int codeState) {
		this.codeState = codeState;
	}

	public String getCodeType() {
		return codeType;
	}

	public void setCodeType(String codeType) {
		this.codeType = codeType;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCodePlan() {
		return codePlan;
	}

	public void setCodePlan(String codePlan) {
		this.codePlan = codePlan;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getCodeNumber() {
		return codeNumber;
	}

	public void setCodeNumber(String codeNumber) {
		this.codeNumber = codeNumber;
	}

	public String getSerialcode() {
		return serialcode;
	}

	public void setSerialcode(String serialcode) {
		this.serialcode = serialcode;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getDefault1() {
		return default1;
	}

	public void setDefault1(String default1) {
		this.default1 = default1;
	}

	public String getNumBackUp() {
		return NumBackUp;
	}

	public void setNumBackUp(String numBackUp) {
		NumBackUp = numBackUp;
	}
}
